package com.hejing.面向对象特征之二_继承.this关键字;

/**
 * ClassName: BoyGirlTest
 * Package: com.hejing.this关键字
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-03-25 10:28
 * @Version: 1.0
 */
public class BoyGirlTest {
    public static void main(String[] args) {
        Boy boy1 = new Boy("捷克", 24);
        Girl girl1 = new Girl("肉丝", 23);
        Girl girl2 = new Girl("朱丽叶", 19);

        girl1.marry(boy1);
        boy1.shout();

        int ret = girl1.compare(girl2);
        System.out.println(ret);


    }
}

























